{% extends 'base.html' %}
{% block content %}
    <form method="post" action="">
        {% if info %}
            <p class="alert alert-success">
                {{ info }}
            </p>
        {% endif %}
        <table class="table table-striped table-hover table-condensed">
        <thead>
            <tr>
                <th><input onclick="selectAll()" type="checkbox"  name="select_all" style="select_all" id="select_all"/></th>
                <th>ID</th>
                <th>IDC</th>
                <th>修改</th>
            </tr>
        </thead>
        <tbody>
            {% for idc in idcs %}
            <tr>
                <td><input type="checkbox" name="selected" value="{{ idc.id }}"></td>
                <td>{{ idc.id }}</td>
                <td>{{ idc.name }}</td>
                <td><a href="/chgIDC/?id={{ idc.id }}">修改</a></td>
            </tr>
            {% endfor %}
        </tbody>
        </table>
    <button class="btn btn-primary">删除</button>
    </form>
{% endblock %}